Bitcoin Forum
May 24, 2024, 06:01:16 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: who knows DEV C++  (Read 209 times)
finaleshot2016 (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1007


Degen in the Space


View Profile WWW
August 10, 2017, 07:14:37 AM
 #1

im just a beginner in dev c++, please check my codes if correct.

__________________________________________
#include<stdio.h>
/* Calculation of total resistance */
main()
{
   float a, b;
   printf("Enter the resistance value of R1 in ohm:");
   scanf("%f", &a);
   printf("Enter the resistance value of R2 in ohm:");
   scanf("%f", &b);
   printf("The Total Resistance of R1 and R2 connected in series is %f ohm", "a+b");
   
   getchar();
   return 0;
}
__________________________________________

the only sentence that appear is --> Enter the resistance value of R1 in ohm:

photo: dev c++
Monta3002
Sr. Member
****
Offline Offline

Activity: 344
Merit: 257


EndChain - Complete Logistical Solution


View Profile
August 10, 2017, 08:03:49 AM
 #2

That's wrong, use youtube for tutorials

beatrice222
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
August 10, 2017, 08:17:50 AM
 #3

search the material in the internet and you tube.
finaleshot2016 (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1007


Degen in the Space


View Profile WWW
August 10, 2017, 11:56:23 AM
 #4

search the material in the internet and you tube.

That's wrong, use youtube for tutorials

Thanks a lot! im just a begineer thanks for your help. Now i will search it on youtube, ill find the right code on it. I dont know when i will use getche or getchar.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!