Bitcoin Forum
May 03, 2024, 05:37:48 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++
1714757868
Hero Member
*
Offline Offline

Posts: 1714757868

View Profile Personal Message (Offline)

Ignore
1714757868
Reply with quote  #2

1714757868
Report to moderator
1714757868
Hero Member
*
Offline Offline

Posts: 1714757868

View Profile Personal Message (Offline)

Ignore
1714757868
Reply with quote  #2

1714757868
Report to moderator
1714757868
Hero Member
*
Offline Offline

Posts: 1714757868

View Profile Personal Message (Offline)

Ignore
1714757868
Reply with quote  #2

1714757868
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714757868
Hero Member
*
Offline Offline

Posts: 1714757868

View Profile Personal Message (Offline)

Ignore
1714757868
Reply with quote  #2

1714757868
Report to moderator
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!